package practice.w917;


public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "www.tedu.cn";
        boolean start = str.startsWith("www");
        System.out.println(start);
        boolean end = str.endsWith(".cn");
        System.out.println(end);

//        String str = "www.tedu.cn";
//        boolean start = str.startsWith("www");
//        System.out.println(start);
//        boolean end = str.endsWith(".cn");
//        System.out.println(end);



    }
}














